package domd4;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        double sum=0;
        double[]a={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65};
        for(int i=0;i<10;i++){
            int n=s.nextInt();
            sum+=n*a[i];
        }
        System.out.printf("%.1f",sum);
    }
}